<tagLib name="html" />
<script language="javascript" src="/Public/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<div id="main-content">
    <div id="main" class="main">
        <div class="spin-cont">
            <div class="user-hd">
                <h2>系统管理>>{$page_title}</h2>
            </div>
            <div class="clearfix searchspin searchorder">
                <p>
                    <form action="{:U('Log/logList')}" method="get">
                    <div class="fl">
                    时间范围：<input type="text" name="create_time_start" id="create_time_start" value="{$_GET['create_time_start']}" class="Wdate bg-input mr5" onFocus="WdatePicker({maxDate:'%y-%M-%d'})" readonly="readonly" size="30" style="width: 90px;"/>
                        <input type="text" name="create_time_end" id="create_time_end" value="{$_GET['create_time_end']}" class="Wdate bg-input mr5" onFocus="WdatePicker({minDate:'#F{ $dp.$D(\'create_time_start\')}',maxDate:'%y-%M-%d'})" readonly="readonly" size="30" style="width: 90px;" />
					
					<div class="diy_select mr5">
						<input type="hidden" name="option" value="{$option}" class="diy_select_input">
						<input type="text" value="<if condition="'' NEQ $option">{$log_options[$option]}</if>" placeholder="请选择行为类型" class="diy_select_txt" readonly="readonly">
						<div class="diy_select_btn">
							<span></span>
						</div>
						<ul class="diy_select_list" style="display: none;">
							<volist name="log_options" id="vo">
							<li data-value="{$key}">{$vo}</li>
							</volist>
						</ul>
					</div>

                    <input type="text" maxlength="36" name="keywords" value="{$keywords}" placeholder="请输入关键字" class="bg-input" />
					<a href="{:U('Log/logList')}" class="sblue-btn" style="height:28px;width:68px;">清空 </a>
                    <input type="submit" class="sblue-btn" value="检索" />
                    </div>
                    <div class="clear"></div>
                    </form>
                </p>
            </div>
            <div class="spin-cont">
                <table>
                    <tr>
                        <th style="width: 180px;">用户名</th>
                        <th style="width: 180px;">昵称</th>
                        <th style="width: 180px;">IP</th>
                        <th style="width: 180px;">时间</th>
                        <th style="width: 180px;">行为</th>
                        <th style="width: 80px;">操作</th>
                    </tr>
                    <volist name="data_list_data[data_list]" id="vo">
                    <tr>
                        <td>{$vo.user_name}</td>
                        <td>{$vo.nick_name}</td>
                        <td>{$vo.ip}</td>
                        <td>{$vo.create_time|date="Y-m-d H:i", ###}</td>
                        <td>{$log_options_data[$vo[action]]}</td>
                        <td><a class="delfilebtn" href="{:U('Log/detail', array('log_id'=>$vo[log_id]))}">详情</a></td>
                    </tr>
                    </volist>
                </table>
                <div class="page txt-center">
                    {$data_list_data.pager}
                </div>
            </div>
        </div>
    </div>
</div>